package com.itheima.branch;

public class While {
    public static void main(String[] args) {
        int count = 8848860;
        double money = 0.1;
        int num = 0;
        while (count > money) {
            num++;
            money = 2 * money;
        }
        System.out.println("一共需要" + num + '次');
    }
}
